package com.practice.xw.entuty;

/**
 * @author xiongwei_vendor
 * @date 2020/11/25 19:04
 */
public class CobraResultCodeConstant {
    public static final ResultCode SUCCESS = new ResultCode("0", "成功");
    public static final ResultCode PASSWORD_ERROR = new ResultCode("AUTH_0001", "用户名或密码错误!");
    public static final ResultCode TOKEN_ERROR = new ResultCode("AUTH_0002", "token无效!");
    public static final ResultCode USER_LOCK = new ResultCode("AUTH_0003", "用户被锁定!%s");
    public static final ResultCode USER_DELETE = new ResultCode("AUTH_0004", "用户被删除!");
    public static final ResultCode USER_EXIST = new ResultCode("AUTH_0005", "用户已经存在!");
    public static final ResultCode USER_NOT_EXIST = new ResultCode("AUTH_0006", "用户不存在!");
    public static final ResultCode PARAM_ERROR = new ResultCode("PM_0001", "参数异常!%s");
    public static final ResultCode DATE_FORMAT_ERROR = new ResultCode("PM_0002", "时间转换异常!%s");
    public static final ResultCode FILE_ERROR = new ResultCode("PM_0003", "文件操作异常!%s");
    public static final ResultCode ID_CARD_ERROR = new ResultCode("PM_0004", "身份证解析异常!%s");
    public static final ResultCode JSON_PARSE_ERROR = new ResultCode("PM_0005", "JSON解析异常!%s");
    public static final ResultCode HTTP_REQUEST_ERROR = new ResultCode("PM_0006", "HTTP请求异常!%s");
    public static final ResultCode VIPER_HTTP_REQUEST_ERROR = new ResultCode("VP_0001", "请求viper发生网络异常!%s");
    public static final ResultCode VIPER_RESULT_PARSE_ERROR = new ResultCode("VP_0002", "解析viper返回结果产生异常!%s");
    public static final ResultCode VIPER_PARAM_ERROR = new ResultCode("VP_0003", "请求viper传入的参数错误!%s");
    public static final ResultCode SENSEFACE_RESULT_PARSE_ERROR = new ResultCode("SF_0001", "解析Senseface返回结果产生异常!%s");
    public static final ResultCode INTERNAL_ERROR = new ResultCode("SY_0001", "内部未捕获异常!%s");
    public static final ResultCode GLOBAL_IO_EXCEPTION = new ResultCode("SY_0002", "文件处理异常!");
    public static final ResultCode GLOBAL_ILLEGAL_ARGUMENT_EXCEPTION = new ResultCode("SY_0003", "参数错误!");
    public static final ResultCode GLOBAL_SECURITY_EXCEPTION = new ResultCode("SY_0004", "违背安全原则!");
    public static final ResultCode GLOBAL_SQL_EXCEPTION = new ResultCode("SY_0005", "操作数据库异常!");
    public static final ResultCode GLOBAL_CONNECTION_EXCEPTION = new ResultCode("SY_0006", "网络异常!");
    public static final ResultCode GLOBAL_NULL_EXCEPTION = new ResultCode("SY_0007", "调用非法对象!");
    public static final ResultCode FAIL = new ResultCode("SY_9999", "失败!%s");

    public CobraResultCodeConstant() {
    }
}
